package com.hm.base.auto;

import org.springframework.boot.context.properties.ConfigurationProperties;

import lombok.Data;

/**
 * @author shishun.wang
 * @date 上午11:44:44 2017年5月26日
 * @version 1.0
 * @describe
 */

@Data
@ConfigurationProperties(prefix = "com.hm.base.init")
public class SystemEnvConfigProperties {

	/**
	 * 是否开启开发模式
	 */
	private boolean devModel;

	/**
	 * 开发模式默认用户id
	 */
	private long devModelUser;

	/**
	 * 开启请求日志记录
	 */
	private boolean openReqLogRecord;

	private String dbBusWebUsername;

	private String dbBusWebPassword;
	
	/**
	 * 数据字典缓存日期
	 */
	private int dictCacheLoseTime;
	
	/**
	 * 开启数据权限
	 */
	private boolean openDataAuth;

	private BackstageAccreditInfo backstageAccreditInfo = new BackstageAccreditInfo();
	
	private Qiniu qiniu = new Qiniu();
	
	@Data
	public class Qiniu{
		
		private String prefixUri;
		
		private String accessKey;
		
		private String secretKey;
		
		private String bucket;
	}
	
	@Data
	public class BackstageAccreditInfo {

		private String version;

		private String validity;

		private String officialWebsite;

		private String officialWebsiteUri;
	}

}
